﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="reg_job.aspx.cs" Inherits="lcmyjobs.Web.users.reg_job" %>

<%@ Register src="../Controls/foot.ascx" tagname="foot" tagprefix="uc1" %>
<%@ Register src="../Controls/Bottom1.ascx" tagname="Bottom1" tagprefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/h_edu.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
     <link href="../Styles/ui-lightness/jquery-ui-1.8.17.custom.css" rel="stylesheet"
        type="text/css" />    
    <script src="../Scripts/jquery-ui-1.8.17.custom.min.js" type="text/javascript"></script>
    
    <script src="../Scripts/drag.js" type="text/javascript"></script>
    <script src="../Scripts/city_func.js" type="text/javascript"></script>
    <script src="../Scripts/city_arr.js" type="text/javascript"></script>
    <link href="../Styles/css.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/industry_arr.js" type="text/javascript"></script>
    <script src="../Scripts/industry_func.js" type="text/javascript"></script>
    <script src="../Scripts/funtype_arr.js" type="text/javascript"></script>
    <script src="../Scripts/funtype_func.js" type="text/javascript"></script>
    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="../Scripts/mybasic.js" type="text/javascript"></script>
    <style type="text/css">
    
 p.MsoNormal
	{margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	font-size:10.5pt;
	font-family:"Times New Roman","serif";
	        margin-left: 0cm;
            margin-right: 0cm;
            margin-top: 0cm;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="wrapper">
    <div class="top">
	    <div class="logo"></div>
		<div class="geri">个人求职注册</div>
		<div class="site_title">
			<div class="site_title1"></div>
			<div class="site_title2">
				 <ul>
				     <li>基本资料&bull;联系方式</li>
					 <li>&nbsp; &rarr; &nbsp;</li>
					 <li>教育背景&bull;工作经验</li>
					 <li>&nbsp; &rarr; &nbsp;</li>
					 <li class="curbar">求职意向</li>
					 <li>&nbsp; &rarr; &nbsp;</li>
					 <li>管理中心（找工作）</li>
				 </ul>
		  </div>
		</div>
	</div>
	<div class="geet">
	  <div align="center"><span>&nbsp;&nbsp;欢迎注册个人会员!</span>
      </div>
      <div style=" height:16px;"></div>
        <p align="center">
            <em>友情提示：带*的项目为必填项；虚假的简历将不能通过审核并被及时删除！</em>
        </p>
  </div> 
    <div class="middle">
    <div class="main_data"><!--one-->
          <div class="main_data_title">
                    <h3>求职意向</h3>
          </div>
 
			 <div style="font-size:12px; margin-left:100px;" class="main_data_list">
    <table cellSpacing="0" cellPadding="0" width="100%" border="0" >
	<tr style="margin:6px 0;">
	    <td height="25" class="txtalign-wide">
            <span class="style2">*</span>目前职业状态：
        </td>
        <td width="360px" align="left" colspan="2">
           
                <asp:RadioButton ID="rbt1" runat="server" GroupName="job" Text="  我目前处于待业状态" 
                    ToolTip="1" Checked="True"  />
                <br /><br />
                <asp:RadioButton ID="rbt2" runat="server" GroupName="job" Text="  我目前在职，正考虑换个新环境" 
                    ToolTip="2" />
                <br /><br />
                <asp:RadioButton ID="rbt3" runat="server" GroupName="job" 
                    Text="  我对现有工作还算满意，如有更好的工作机会，我也可以考虑" ToolTip="3" />
                <br /><br />
                <asp:RadioButton ID="rbt4" runat="server" GroupName="job" Text="  在校生&bull;应届生" 
                    ToolTip="4" />
                <br /><br />
                <asp:RadioButton ID="rbt5" runat="server" GroupName="job" Text="  目前暂无跳槽打算" 
                    ToolTip="5" />
                <br /><br />
        </td>

	</tr>
	
	<tr style="margin-bottom:6px;">
    	<td height="25" class="txtalign-wide">
		    <span class="style2">*</span>到岗时间：
        </td>
	    <td height="25" width="*" align="left" colspan="2" >
		    <asp:RadioButton ID="rbtt1" runat="server" GroupName="jtime" Text=" 随时" 
                Checked="True" onclick="showtime()" style=" margin-right:15px;" />
            <asp:RadioButton ID="rbtt2" runat="server" GroupName="jtime" Text=" 面谈" onclick="showtime()" style=" margin-right:15px;" />
            <asp:RadioButton ID="rbtt3" runat="server" GroupName="jtime" onclick="showtime()" />
		    <asp:TextBox ID="txttime" runat="server"  onfocus="WdatePicker({ dateFmt: 'yyyy年MM月dd日', readOnly: true })" ></asp:TextBox>
            <span id="mytxt">&nbsp;</span>以后随时上班
        </td>
     </tr>
	<tr style="margin-bottom:6px;">
	    <td height="25" class="txtalign-wide">
		    <span class="style2">*</span>期望工作地区：
        </td>
	    <td height="25" width="500" align="left">
		    <asp:TextBox ID="txtarea" runat="server" onclick="jobAreaSelect()" CssClass="inputText3"></asp:TextBox>
	        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="txtarea" ErrorMessage="RequiredFieldValidator" 
                Display="Dynamic">不能为空</asp:RequiredFieldValidator>
	        <asp:HiddenField ID="hfarea" runat="server" />
            <asp:HiddenField ID="hfareaid" runat="server" />
	    </td>
	    <td height="25" width="220" style=" font-size:12px;" align="left" class="listmsg">
		    <span>允许选择</span><span lang="EN-US">3</span><span>个工作地区</span>
        </td>
    </tr>
	<tr style="margin-bottom:6px;">
	<td height="25" class="txtalign-wide">
		<span class="style2">*</span>期望从事行业：</td>
	<td height="25" width="*" align="left">
		<asp:TextBox ID="txttrade" runat="server" onclick="IndustrySelect()" CssClass="inputText3"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
            ControlToValidate="txttrade" ErrorMessage="RequiredFieldValidator" 
            Display="Dynamic">不能为空</asp:RequiredFieldValidator>
        <asp:HiddenField ID="hftrade" runat="server" />
        <asp:HiddenField ID="hftradeid" runat="server" />
        </td>
	<td height="25" width="*" align="left" style="font-size:12px;" class="listmsg">
        最多允许选择3个行业</td></tr>
	<tr style="margin-bottom:6px;">
	    <td height="25" class="txtalign-wide">
		    <span class="style2">*</span>期望从事岗位：
        </td>
	    <td height="25" width="*" align="left">
		    <asp:TextBox ID="txtjob" runat="server" onclick="funtypeSelect()" CssClass="inputText3"></asp:TextBox>
            <span id="jobmsg" style=" color:#ff6600;"></span>
            <asp:HiddenField ID="hfjob" runat="server" />
            <asp:HiddenField ID="hfjobid" runat="server" />
        </td>
	    <td height="25" width="*" align="left" style="font-size:12px;" class="listmsg">
		    允许选择3个工作岗位
        </td>
    </tr>
    <tr style="margin-bottom:6px;">
	    <td height="25" class="txtalign-wide">
		    <span class="style2" style=" visibility:hidden;">*</span><span style=" visibility:hidden;">期望从事岗位：</span>
        </td>
        <td height="25" width="*" align="left">
            <asp:TextBox ID="txtjob_other" Width="150px"  runat="server" onclick="jobother()" onfocus="jobother()" onblur="jobotherout()" style=" margin:4px 0; color:#565D63;">若无合适选项在此处填写</asp:TextBox>
        </td>
    </tr>
	<tr id="mymouthpay"  style="margin-bottom:6px;">
	<td height="25" class="txtalign-wide">
		<span class="style2">*</span>期望月薪：</td>
	<td height="25" width="*" align="left">
        
		<asp:TextBox ID="txtpay" runat="server" Width="51px" onblur="chmyear(this)"  CssClass="inputText3"></asp:TextBox>
        &nbsp;元 
        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
            ControlToValidate="txtpay" ErrorMessage="RequiredFieldValidator" 
            Display="Dynamic">不能为空</asp:RequiredFieldValidator>
        <asp:CompareValidator ID="CompareValidator1" runat="server" 
            ControlToValidate="txtpay" ErrorMessage="CompareValidator" 
            Operator="DataTypeCheck" Type="Currency" Display="Dynamic">必须为数字</asp:CompareValidator>
        &nbsp;
        
        </td>
	<td height="25" width="*" align="left"style="font-size:12px;" class="listmsg">
		面谈填写&quot;0&quot;</td></tr>
	<tr class="showyear"  style="margin-bottom:6px;">
	<td height="25" class="txtalign-wide">
		<asp:CheckBox ID="chbyear" runat="server" Text=" 年 薪 ：" onclick="chyear()" /></td>
	<td height="25" width="*" align="left" colspan="2">
		
        <span id="myyear"><asp:TextBox ID="txtyearpay" runat="server" Width="51px"  CssClass="inputText3"></asp:TextBox>&nbsp;万元</span>
        

        </td></tr>
    	<tr class="showyear" style="margin-bottom:6px;" >
	        <td height="25" style=" color:#565d63; font-size:12px;"  colspan="3">
                <div style="width:570px; margin-bottom:14px; margin-left:173px;">
		            <span style="color:#ff6600;">您是高级人才：</span>硕士及以上学历、工作经验3年以上，小语种外语人才，或具有年薪5万以上的工作能力等，<span style="color:#ff6600;">建议您 
                    同时选择年薪，</span>您将有机会被 我就业网猎头服务 推荐猎头职位
                </div>
            </td>
	    </tr>
	<tr style="margin-bottom:6px;">
	<td height="25" class="txtalign-wide">
		<asp:CheckBox ID="chbreward" runat="server" onclick="chreward()"/><span>悬赏求职：</span>
       </td>
	<td height="25" width="*" align="left">
        <span id="myreward"><asp:TextBox ID="txtreward" runat="server" Width="46px"></asp:TextBox>&nbsp;元</span>
        <asp:CompareValidator ID="CompareValidator2" runat="server" 
            ControlToValidate="txtreward" Display="Dynamic" ErrorMessage="CompareValidator" 
            Operator="GreaterThanEqual" Type="Double" ValueToCompare="100">不能小于100元</asp:CompareValidator>
         

        </td>
	    <td height="25" width="*" align="left">
            
            <div >
                <x:PageManager ID="PageManager1" runat="server" />
                <x:LinkButton ID="btnWhy" Text="为什么要悬赏求职？" runat="server"  CssClass="inline" ToolTip=" 悬赏求职：更准确、更快捷。<br/><br/>更准确----提供专业的人才选择工具，帮助您深度甄选工作。 基于人才胜任素质的评测工具辅助单位招聘。颠覆被动“等待”招聘的传统方式。<br/><br/>更快捷----发挥社会力量，动员群众，借助猎手人脉资源关系，让您的悬赏信息迅速覆盖目标群体，快捷找到合适工作。"  ToolTipAutoHide="false">
                </x:LinkButton>
            </div>
        </td>
    </tr>
	<tr style="margin-bottom:6px;">
        <td height="25"  class="txtalign-wide"></td>
	    <td height="25"  width="500px" style="color:#565d63; font-size:12px;" colspan="3">
            <div style="width:570px; margin-bottom:6px; margin-top:6px;">
		     <span style="color:#ff6600;">您快捷找到：</span>适合的、满意的、同您的职业愿景吻合的工作，<span style="color:#ff6600;">建议您选择悬赏求职，</span>您将有机会借助猎手人脉资源 
                关系，及我就业网悬赏服务，被推荐适合工作

            </div>
        </td>
	    </tr>
        <br/>
	<tr style="margin-bottom:6px;">
	    <td height="25" class="txtalign-wide">
		    <span class="style2">*</span>职业愿景：
        </td>

	    <td height="25" width="*" align="left" colspan="2">
		    <asp:TextBox id="txtvision" runat="server" Width="73%" Height="150px" 
                TextMode="MultiLine"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                ControlToValidate="txtvision" ErrorMessage="RequiredFieldValidator" 
                Display="Dynamic">不能为空</asp:RequiredFieldValidator>
            </td></tr>
            <tr>
	    <td  colspan="3" align="center" style="color:#ff6600; padding-top:20px;">
		    我就业网祝福您：早日找到满意的工作

       </td>
    </tr>
	</table>

     </div>
    <div id="dialog" title="为什么要悬赏求职">
    <table cellpadding="0" cellspacing="0" class="style3">
                
                <tr>
                    <td  style=" line-height:24px; padding-left:98px;">
                       
悬赏求职：更准确、更快捷。
　　<br />更准确----提供专业的人才选择工具，帮助您深度甄选工作。 基于人才胜任素质的评测工具辅助单位招聘。颠覆被动“等待”招聘的传统方式。
　　<br />更快捷----发挥社会力量，动员群众，借助猎手人脉资源关系，让您的悬赏信息迅速覆盖目标群体，快捷找到合适工作。
</td>
                    
                </tr>               
                
               
            </table>
			
        
        </div>

	    </div>
    </div>

    <div class="button">
	  <asp:Button ID="btnOK" runat="server" OnClick="btnOK_Click" CssClass="btn"   onclientclick="return save()"
            Text="提 交" /> <asp:HiddenField ID="hfyears" runat="server" />
	</div>

    <uc2:Bottom1 ID="Bottom11" runat="server" />
</div>

    </form>
     <div style="DISPLAY: none" id="maskLayer"><iframe 
style="filter: alpha(opacity=50)" id="maskLayer_iframe" src="about:blank" 
frameBorder="0" scrolling="no"></iframe >
<div style="filter: alpha(opacity=50); -moz-opacity: 0.5; opacity: 0.5" 
id="alphadiv"></div>
<div id="drag">
<h3 id="drag_h"></h3>
<div id="drag_con"></div><!-- drag_con end --></div></div><!-- maskLayer end -->
<div></div><!-- alpha div end -->
<div style="display: none" id="sublist"></div>

 <script language="javascript" type="text/javascript">

     var allowedSpecialCharKeyCodes = [46, 8, 37, 39, 35, 36, 9];
     var numberKeyCodes = [44, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105];
     var commaKeyCode = [188];
     var decimalKeyCode = [190, 110];

     function numbersOnly(event) {
         var legalKeyCode =
        (!event.shiftKey && !event.ctrlKey && !event.altKey)
            &&
        (jQuery.inArray(event.keyCode, allowedSpecialCharKeyCodes) >= 0
            ||
        jQuery.inArray(event.keyCode, numberKeyCodes) >= 0);

         if (legalKeyCode === false)
             event.preventDefault();
     }

     function numbersAndCommasOnly(event) {
         var legalKeyCode =
        (!event.shiftKey && !event.ctrlKey && !event.altKey)
            &&
        (jQuery.inArray(event.keyCode, allowedSpecialCharKeyCodes) >= 0
            ||
        jQuery.inArray(event.keyCode, numberKeyCodes) >= 0
            ||
        jQuery.inArray(event.keyCode, commaKeyCode) >= 0);

         if (legalKeyCode === false)
             event.preventDefault();
     }

     function decimalsOnly(event) {
         var legalKeyCode =
        (!event.shiftKey && !event.ctrlKey && !event.altKey)
            &&
        (jQuery.inArray(event.keyCode, allowedSpecialCharKeyCodes) >= 0
            ||
        jQuery.inArray(event.keyCode, numberKeyCodes) >= 0
            ||
        jQuery.inArray(event.keyCode, commaKeyCode) >= 0
            ||
        jQuery.inArray(event.keyCode, decimalKeyCode) >= 0);

         if (legalKeyCode === false)
             event.preventDefault();
     }

     function currenciesOnly(event) {
         var legalKeyCode =
        (!event.shiftKey && !event.ctrlKey && !event.altKey)
            &&
        (jQuery.inArray(event.keyCode, allowedSpecialCharKeyCodes) >= 0
            ||
        jQuery.inArray(event.keyCode, numberKeyCodes) >= 0
            ||
        jQuery.inArray(event.keyCode, commaKeyCode) >= 0
            ||
        jQuery.inArray(event.keyCode, decimalKeyCode) >= 0);

         // Allow for $
         if (!legalKeyCode && event.shiftKey && event.keyCode == 52)
             legalKeyCode = true;

         if (legalKeyCode === false)
             event.preventDefault();
     }
     (function ($) {
         $.formatCurrency = {}; $.formatCurrency.regions = []; $.formatCurrency.regions[""] = { symbol: "", positiveFormat: "%s%n", negativeFormat: "(%s%n)", decimalSymbol: ".", digitGroupSymbol: "", groupDigits: true };
         $.fn.formatCurrency = function (destination, settings) {
             if (arguments.length == 1 && typeof destination !== "string") {
                 settings = destination; destination = false
             } var defaults = { name: "formatCurrency", colorize: false, region: "", global: true, roundToDecimalPlace: 2, eventOnDecimalsEntered: false }; defaults = $.extend(defaults, $.formatCurrency.regions[""]);
             settings = $.extend(defaults, settings); if (settings.region.length > 0) { settings = $.extend(settings, getRegionOrCulture(settings.region)) } settings.regex = generateRegex(settings);
             return this.each(function () {
                 $this = $(this); var num = "0"; num = $this[$this.is("input, select, textarea") ? "val" : "html"](); if (num.search("\\(") >= 0) {
                     num = "-" + num
                 } if (num === "" || (num === "-" && settings.roundToDecimalPlace === -1)) { return } if (isNaN(num)) {
                     num = num.replace(settings.regex, ""); if (num === "" || (num === "-" && settings.roundToDecimalPlace === -1)) {
                         return
                     } if (settings.decimalSymbol != ".") { num = num.replace(settings.decimalSymbol, ".") } if (isNaN(num)) { num = "0" }
                 } var numParts = String(num).split("."); var isPositive = (num == Math.abs(num));
                 var hasDecimals = (numParts.length > 1); var decimals = (hasDecimals ? numParts[1].toString() : "0"); var originalDecimals = decimals; num = Math.abs(numParts[0]);
                 num = isNaN(num) ? 0 : num; if (settings.roundToDecimalPlace >= 0) {
                     decimals = parseFloat("1." + decimals); decimals = decimals.toFixed(settings.roundToDecimalPlace);
                     if (decimals.substring(0, 1) == "2") { num = Number(num) + 1 } decimals = decimals.substring(2)
                 } num = String(num); if (settings.groupDigits) {
                     for (var i = 0; i < Math.floor((num.length - (1 + i)) / 3);
i++) { num = num.substring(0, num.length - (4 * i + 3)) + settings.digitGroupSymbol + num.substring(num.length - (4 * i + 3)) }
                 } if ((hasDecimals && settings.roundToDecimalPlace == -1) || settings.roundToDecimalPlace > 0) {
                     num += settings.decimalSymbol + decimals
                 } var format = isPositive ? settings.positiveFormat : settings.negativeFormat; var money = format.replace(/%s/g, settings.symbol); money = money.replace(/%n/g, num);
                 var $destination = $([]); if (!destination) { $destination = $this } else { $destination = $(destination) } $destination[$destination.is("input, select, textarea") ? "val" : "html"](money);
                 if (hasDecimals && settings.eventOnDecimalsEntered && originalDecimals.length > settings.roundToDecimalPlace) {
                     $destination.trigger("decimalsEntered", originalDecimals)
                 } if (settings.colorize) { $destination.css("color", isPositive ? "black" : "red") }
             })
         }; $.fn.toNumber = function (settings) {
             var defaults = $.extend({ name: "toNumber", region: "", global: true }, $.formatCurrency.regions[""]);
             settings = jQuery.extend(defaults, settings); if (settings.region.length > 0) { settings = $.extend(settings, getRegionOrCulture(settings.region)) } settings.regex = generateRegex(settings);
             return this.each(function () {
                 var method = $(this).is("input, select, textarea") ? "val" : "html"; $(this)[method]($(this)[method]().replace("(", "(-").replace(settings.regex, ""))
             })
         }; $.fn.asNumber = function (settings) {
             var defaults = $.extend({ name: "asNumber", region: "", parse: true, parseType: "Float", global: true }, $.formatCurrency.regions[""]);
             settings = jQuery.extend(defaults, settings); if (settings.region.length > 0) { settings = $.extend(settings, getRegionOrCulture(settings.region)) } settings.regex = generateRegex(settings);
             settings.parseType = validateParseType(settings.parseType); var method = $(this).is("input, select, textarea") ? "val" : "html"; var num = $(this)[method]();
             num = num ? num : ""; num = num.replace("(", "(-"); num = num.replace(settings.regex, ""); if (!settings.parse) { return num } if (num.length == 0) { num = "0" } if (settings.decimalSymbol != ".") {
                 num = num.replace(settings.decimalSymbol, ".")
             } return window["parse" + settings.parseType](num)
         }; function getRegionOrCulture(region) {
             var regionInfo = $.formatCurrency.regions[region]; if (regionInfo) {
                 return regionInfo
             } else { if (/(\w+)-(\w+)/g.test(region)) { var culture = region.replace(/(\w+)-(\w+)/g, "$1"); return $.formatCurrency.regions[culture] } } return null
         } function validateParseType(parseType) {
             switch (parseType.toLowerCase()) {
                 case "int": return "Int";
                 case "float": return "Float"; default: throw "invalid parseType"
             }
         } function generateRegex(settings) {
             if (settings.symbol === "") {
                 return new RegExp("[^\\d" + settings.decimalSymbol + "-]", "g")
             } else { var symbol = settings.symbol.replace("$", "\\$").replace(".", "\\."); return new RegExp(symbol + "|[^\\d" + settings.decimalSymbol + "-]", "g") }
         }
     })(jQuery);
     $().ready(function () {
         $('#dialog').dialog({
             autoOpen: false,
             modal: true,
             width: 600
         }
            );
         // Dialog Link
         $('#showwhy').click(function () {
             $('#dialog').dialog('open');
             return false;
         });
         $("#dialog").parent().appendTo("#dialog_target");
         showtime();
         $("#myyear").hide();
         //$("#myreward").hide();
         var i = $('#<%= hfyears.ClientID%>').val();
         if (i == 1) {
             $(".showyear").show();
         }
         else {
             $(".showyear").hide();
         }
         if ($("#txtarea").val() != "") {
             jobArea_Arr = getmyareaids($("#txtarea").val());
         }
         if ($("#txtjob").val() != "") {
             fun_flag_arr = getmyjobids($("#txtjob").val());
         }
         if ($("#txttrade").val() != "") {
             ind_flag_arr = getmytradeids($("#txttrade").val());
         }
         if ($("#txtreward").val() != "") {
             $('#<%= chbreward.ClientID%>').attr("checked", "true");
             chreward();
         }
         if ($("#txtyearpay").val() != "") {
             $(".showyear").show();
             $('#<%= chbyear.ClientID%>').attr("checked", "true");
             chyear();
         }
         $('#<%= txtyearpay.ClientID%>').keydown(currenciesOnly).blur(function () { $(this).formatCurrency(); });
         $('#<%= txtreward.ClientID%>').keydown(currenciesOnly).blur(function () { $(this).formatCurrency(); });

     });
     function close() {
         $('#dialog').dialog('close');
         //$('#dialogdel').dialog('close');

     }
     function in_array(needle, haystack) {
         if (typeof needle == 'string' || typeof needle == 'number') {
             for (var i in haystack) {
                 if (haystack[i] == needle) {
                     return true;
                 }
             }
         }
         return false;
     }
     function showtime() {
//         if ($('#<%= rbtt3.ClientID%>').attr("checked")) {
//             $('#<%= txttime.ClientID%>').attr('readonly', "").attr("onfocus", "WdatePicker({ dateFmt: 'yyyy年MM月dd日', readOnly: true })");
//             $("#mytxt").show();
//         }
//         else {
//             $('#<%= txttime.ClientID%>').attr('readonly', "readonly").attr("onfocus", " "); 
//             $("#mytxt").hide();
//         }
//         if ($('#<%= rbtt2.ClientID%>').attr("checked")) {
//             $('#<%= txtpay.ClientID%>').val("0").attr('readonly', "readonly");
//             $("#mymouthpay").hide();  
//         }
//         else {
//             $('#<%= txtpay.ClientID%>').attr('readonly', "");
//             $("#mymouthpay").show();
         //         }

         if ($('#<%= rbtt3.ClientID%>').attr("checked")) {
             $('#<%= txttime.ClientID%>').attr('disabled',false);
             $("#mytxt").show();
         }
         else if ($('#<%= rbtt2.ClientID%>').attr("checked")) {
             //$('#<%= txtpay.ClientID%>').val("0").attr('readonly', "readonly");
             //$("#mymouthpay").hide();

             $('#<%= txttime.ClientID%>').attr('disabled', true);
             $('#<%= txttime.ClientID%>').unbind();
             $('#<%= txttime.ClientID%>').val("");
             $("#mytxt").hide();
         }
         else {
             $('#<%= txtpay.ClientID%>').attr('readonly', "");
             $("#mymouthpay").show();

             $('#<%= txttime.ClientID%>').attr('disabled', true).unbind();
             $('#<%= txttime.ClientID%>').val("");
             $("#mytxt").hide();
         }
        
     }
     function chyear() {
         if ($('#<%= chbyear.ClientID%>').attr("checked")) { $("#myyear").show(); } else { $("#myyear").hide(); $('#<%= txtyearpay.ClientID%>').val(""); }


     }
     function chreward() {
         //if ($('#<%= chbreward.ClientID%>').attr("checked")) { $("#myreward").show(); } else { $("#myreward").hide(); $('#<%= txtreward.ClientID%>').val(""); }


     }
     function setdate() {
         WdatePicker({ dateFmt: 'yyyy年MM月dd日', readOnly: true });
     }
     function chmyear(ty) {
         var yp = $(ty).val();
         if (!isNaN(yp)) {
             if (yp >= 2500) {
                 $(".showyear").show();
             }
             else if ($('#<%= hfyears.ClientID%>').val() == 0) {
                 $(".showyear").hide();
             }
         }
     }

     function save() {

         if ($("#txtjob").val() == "" && $("#txtjob_other").val() == "若无合适选项在此处填写") {
             $("#jobmsg").html("不能为空");
             return false;
         }
         else {
             $("#jobmsg").html("");
         }
     }

     function jobother() {
         if ($("#txtjob_other").val() == "若无合适选项在此处填写") $("#txtjob_other").val("");

     }

     function jobotherout() {

         if ($("#txtjob_other").val() == "") $("#txtjob_other").val("若无合适选项在此处填写");

     }

</script>
</body>
</html>
